<div id="view-content">
	<div id="posts" class="backend-item posts">
	<br>
	<h2 class="backend-h2"><span class="img"></span>
		<span class="btAdd">Quản lý menu của trang web
        </span>
       
    </h2>
    <p class="saporator"><br /></p>
    
    <div id="dialog-form-menu" class="add-info" title="<?php echo $this->funcFrm;?>">
	    	<?php echo $this->menu2Frm;?>
    </div>
    
    <div class="show-info">
    <form action="" method="get">
    	<h2>Bảng thông tin</h2>
        <p class="search_box">
			<a class="lnkAddMenu" href="#">Thêm menu mới</a>		
<!--	        <a class="lnkEditMenu" href="#">Thay đổi thông tin menu</a>-->
            <input class="sbt hover focus" type="text" name="search_box_text" title="Nhập vào tiêu đề bài viết cần tìm kiếm"/>
            <input class="sbc input-hover" type="submit" name="search_box_sumit"  value="Tìm"/>
        </p><!-- End .search_box-->
         <p class="saporator sf"><br /></p>
         
	    
		    <div class="table_nav">
                <div class="table_nav_left">
                    <select id="tbn_cat" name="tbn_cate">
                        <option value="0" selected="selected">Hiển thị tất cả</option>
                    <?php 
                    	foreach ($this->menu1s as $menu1) {
                    		if(isset($_REQUEST['menu1Id']) && $_REQUEST['menu1Id'] == $menu1['menu1Id']){
                    			echo '<option selected value ="'.$menu1['menu1Id'].'">'.$menu1['tenMenu1'].'</option>';	
                    		}else
                    			echo '<option value ="'.$menu1['menu1Id'].'">'.$menu1['tenMenu1'].'</option>';
                    	}
                    ?>                 
                    </select>
                    
                    <input type="submit" value="Lọc" name="tbn_filter" class="tbn_button input-hover"/> 
                    <input type="submit" value="Xóa" name="cmdDel" class="tbn_button input-hover"/>
                    
                </div><!-- end .table_nav_left -->
                <div class="table_nav_pages">  
                <?php 
                	echo $this->paginationControl($this->paginatorMenu2,'sliding','paginator.phtml');
                		
                ?>
                </div>
            </div><!-- End .table_nav-->
        	<table id="p_menu2">
	            <thead>
	                <tr>
	                    <th class="col-1-menu2"><input class="check-all" type="checkbox" /></th>
	                    <th class="col-2-menu2">Tên menu 2</th>
	                    <th class="col-3-menu2">Menu 1</th>
	                    <th class="col-4-menu2">Dịch Vụ</th>
	                </tr>
	            </thead>
	            <tbody>
	            <?php 
	            foreach ($this->paginatorMenu2 as $menu2){
            		$status = ($menu2['dangKyDV'] == 1) ? "Dịch vụ" : "Không";
	            ?>    
	                <tr>
	                    <th class="col-1-menu2">
	                        <input class="sub-check" name="menu2-check[]" type="checkbox" value="<?php echo $menu2['menu2Id'];?>"/>
	                    </th>
	                    <th class="col-2-menu2 post_title">
	                    	<strong><a href="" class="title_ct"><?php echo $menu2['tenMenu2'];?></a></strong> 
		                    <div class="row_action">
		                        <span class="row_edit">
		                        	<a href="<?php echo $this->baseUrl('/admin/menu2/edit/?edit&mn='.$menu2['menu2Id']);?>">Thay đổi</a>|
		                        </span>
		                        <span class="row_del">
		                        	<a href="<?php echo $this->baseUrl('/admin/menu2/delete/?del&mn='.$menu2['menu2Id']);?>">Xóa</a>
		                        </span>                        
		                    </div>
	                    	
	                    </th>
	                    <th class="col-3-menu2"><?php echo $menu2['tenMenu1'];?> </th>
	                    <th class="col-4-menu2 post_title">
	                    	<strong><a href="" class="title_ct"><?php echo $status; ?></a></strong> 
		                    <div class="row_action">
		                        <span class="row_edit">
		                        	<a href="<?php echo $this->baseUrl('/admin/menu2/service/?true&s='.$menu2['menu2Id']);?>">Dịch vụ</a>|
		                        </span>
		                        <span class="row_del">
		                        	<a href="<?php echo $this->baseUrl('/admin/menu2/service/?false&s='.$menu2['menu2Id']);?>">Gỡ bỏ</a>
		                        </span>                        
		                    </div>
	                    </th>
	                </tr>                                          
	            <?php 
	            }
	            ?>             
	            </tbody>
	            <tfoot>
	                <tr>
	                   <th class="col-1-menu2"><input class="check-all" type="checkbox" /></th>
	                    <th class="col-2-menu2">Tên menu 2</th>
	                    <th class="col-3-menu2">Menu 1</th>
	                    <th class="col-4-menu2">Dịch Vụ</th>
	                </tr>
	            </tfoot>
	        </table>
	  	
    </form>
 </div>	              
</div><!-- end #menu2s -->
	
</div>